/*
 * @FilePath: data.js
 * @Author: 杜芬
 * @Date: 2024-08-15 16:10:25
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-08-15 16:22:50
 * Copyright: 2024 xxxTech CO.,LTD. All Rights Reserved.
 * @Descripttion: 页面
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: '供应商编号',
    minWidth: 150,
    prop: 'number',
    fixed: true
  },
  {
    label: '供应商名称',
    // minWidth: 150,
    prop: 'title'
  },
  {
    label: '统一社会信用代码',
    // minWidth: 150,
    prop: 'type'
  },
  {
    label: '采购组织',
    // minWidth: 140,
    prop: 'deptName'
  },
  {
    label: '企业性质',
    prop: 'createName'
    // minWidth: 150
  },
  {
    label: '企业属性',
    prop: 'createTime'
    // minWidth: 140
  }
]
export const actions = [
  {
    key: 'detail',
    text: i18n.t('common.detail'),
    permissions: 'purchase:apply:detail'
  }
]

export const detailColumns = [
  {
    label: '需求行号',
    minWidth: 80,
    prop: 'lineNumber',
    fixed: true
  },
  {
    label: i18n.t('config.material.code'),
    minWidth: 140,
    prop: 'materialCode',
    fixed: true
  },
  {
    label: i18n.t('config.material.name'),
    minWidth: 140,
    prop: 'materialName',
    fixed: true
  },
  {
    label: i18n.t('config.material.specs'),
    minWidth: 140,
    prop: 'materialSpecs'
  },
  {
    label: i18n.t('config.material.remark'),
    minWidth: 140,
    prop: 'remark'
  },
  {
    label: i18n.t('config.materialType.name'),
    minWidth: 140,
    prop: 'materialType'
  },
  {
    label: i18n.t('config.material.unit'),
    minWidth: 80,
    prop: 'materialUnit'
  },
  {
    label: '需求数量',
    minWidth: 100,
    prop: 'quantity'
  },
  {
    label: '期望到货日期',
    minWidth: 170,
    prop: 'arrivalDate'
  },
  {
    label: '状态',
    width: 80,
    prop: 'state'
  }
]
